import axios from '../request';

interface Pageinfo {
  value: string;
  pageNo: number;
  pageSize: number;
  folderId?: number;
}
// 关注项目列表
export const followProjects = (params: Pageinfo) => {
  return axios.get<any>(`api/interact/followProjects`, params);
};
//关注项目列表
export const followCompanys = (params: Pageinfo) => {
  return axios.get<any>(`api/interact/followCompanys`, params);
};
//关注策展人列表
export const followCurators = (params: Pageinfo) => {
  return axios.get<any>(`api/interact/followCurators`, params);
};
//关注展品关注分页
export const followShowpieces = (params: Pageinfo) => {
  return axios.get<any>(`api/interact/followShowpieces`, params);
};
interface Pagefollow {
  refType: number;
  refId: number;
}
//获取所有数量
export const homeNumbers = () => {
  return axios.get<any>(`/api/interact/numbers`);
};
//关注
export const followSet = (params: Pagefollow) => {
  return axios.post<any>(`api/interact/follow`, params);
};
//获取展品浏览历史记录
export const browse = (pageSize: number) => {
  return axios.get<any>(`api/showpiece/browse?pageSize=${pageSize}`, {});
};
//获取展览浏览记录
export const browseProject = (pageSize: number) => {
  return axios.get<any>(`api/project/browse?pageSize=${pageSize}`, {});
};
